package comtwo.servlet;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

public class  school {
    @Value("200")
    private int studentnum;
    @Value("啦啦啦小学")
    private String name;

    public int getStudentnum() {
        return studentnum;
    }

    public void setStudentnum(int studentnum) {
        this.studentnum = studentnum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "school{" +
                "studentnum=" + studentnum +
                ", name='" + name + '\'' +
                '}';
    }
}
